package com.gelsanalyzer;

import java.util.*;

import com.gelsanalyzer.business.*;

public class OptimizerTest {
    public static void main(String[] args) {
        
        CourseEntryList cel = new CourseEntryList();
        
        Course c = new Course(100, new Integer(2), new Integer(100), "Sci", (short) 4);
        Course c1 = new Course(101, new Integer(3), new Integer(101), "Eng", (short) 3);
        Department d = new Department(10, "sci", "science");
        Department d1 = new Department(12, "sci1", "science1");
        
        Goalarea ga = new Goalarea("10 3", "garbage");
        Goalarea ga1 = new Goalarea("3 5", "garbage");
        
        List<Goalarea> list = new ArrayList<Goalarea>();
        list.add(ga);      
        List<Goalarea> list1 = new ArrayList<Goalarea>();
        list1.add(ga1);        
        
        CourseEntryItem cei = new CourseEntryItem(c,d);
        cei.setGoalarea(list);
        CourseEntryItem cei1 = new CourseEntryItem(c1,d1);
        cei1.setGoalarea(list1);
        
        
        cel.addCourseEntryItem(cei);
       
       
        cel.addCourseEntryItem(cei1);
        
        
        
        
        MappedList ML = new MappedList(cel);
        
        ML.optimize();
        ML.print();
      
    }

}
